package org.jet.emall.rbac.service;

import org.jet.emall.rbac.dto.AdminMenuDTO;

import java.util.List;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-05 16:48
 */
public interface CustomAdminMenuService {

    /**
     * 获取菜单树
     * @return
     */
    List<AdminMenuDTO> list(Integer roleId);

    /**
     * 通过菜单名称查出菜单
     * @param name
     * @return
     */
    AdminMenuDTO getMenuByName(String name);
}
